<?php
namespace cubox\webpack;

use cubox\Webpack;
use cubox\provider\webpack\Html;
use cubox\provider\template\Asset;
class Css extends Html{
 
    public function pack(){

        $content = $this->getContent();
        $content = $this->cssImport($content);
        //替换图片路径
        //$content = $this->compileImageUrl($content);
        //@import;
        
        $asset = new Asset($this->name,$content,$this->file,$this->webpackUrl);
        $content = $asset->make();

        Webpack::addCss($this->name,$content);
        
    }
    
}